<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>Delete</title>
</head>

<body>
    <?php
    include "conn.php";
    $id = $_GET['id'];
    $sql = "DELETE FROM message WHERE id = $id";
    echo $sql;
    if ($conn->query($sql)) {
        header("location:show.php");
    } else {
        echo "删除失败!";
    }
    ?>
</body>

</html>